package model

type Register_im struct{
	Unum string`gorm:"type:char(20);column:num;primary_key"`
	Name string`gorm:"type:char(20);column:name"`
	//Department string `gorm:"type:char(20);column:udepartment"`
	//Professional string `gorm:"type:char(20);column:uprofessional"`
	//Population string `gorm:"type:int;column:upopulation"`
	//Housescore string `gorm:"type:int;column:uhousescore"`
}
type Separate_ro struct {
	Unum string `gorm:"type:char(20);column:unum;primary_key;ForeignKey:"`
	Uprofessional string `gorm:"type:char(20);column:uprofessional"`
	Upopulation int `gorm:"type:int;column:upopulation"`
	Udepartment string `gorm:"type:char(20);column:udepartment"`
	Housing_sco int //Housing_sco int `gorm:"type:int;column:housing_sco "`
	Urequire_hs_ar string `gorm:"type:char(20);column:urequire_hs_ar"`
}
type Housesta struct {
	Area string //`gorm:"type:char(20);column:harea;primary_key"`
	Score int //`gorm:"type:int;column:Hminihouse_sco"`
}
type Department_sco struct {
	Dname string `gorm:"type:char(20);column:dname;primary_key"`
	Dscore int `gorm:"type:int;column:dscore"`
}
type Population_sco struct {
	Population int `gorm:"type:int;column:population;primary_key"`
	Pscore int `gorm:"type:int;column:pscore"`
}
type Professional_sco struct {
	pname  string `gorm:"type:char(100);column:population;primary_key"`
	Pscore int `gorm:"type:int;column:pscore"`
}
type Hou_property struct{
	Hnum string
	Harea string
	Urentmeter int
	Hallocation string
}
type House struct{
	Name string
	Department string
	Professinal string
	Population int
	Housco int
	Hnum string
	Harea string
	Rent int
}